-- GENERATED SPELL FOR [Kaskala Defender] --


function spell0_25764(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(38556,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25764', 1500, 1)
end

function Sorts_25764(pUnit, Event)
local choix_sorts_25764 = math.random(0, 0)
if choix_sorts_25764 == 0 then
pUnit:RegisterEvent('spell0_25764', 1, 1)
end
end

function mob25764_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25764', math.random(1500, 3000), 1)
end

function mob25764_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25764_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25764_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25764, 1, 'mob25764_Action')
RegisterUnitEvent(25764, 2, 'mob25764_Leave')
RegisterUnitEvent(25764, 3, 'mob25764_Kill')
RegisterUnitEvent(25764, 4, 'mob25764_Die')
